home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 231
/
231.d81
/
eptitude test
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
2KB
|
70 lines
0 in$="":dq=peek(186)
2 a=a+1:ifa=1thenload"input any.o",dq,1
10 poke53280,.:poke53281,.
100 in$="[216]":sc=0
110 readt:dimqt$(t),vt$(25)
115 vt$=""
120 fora=1to25:vt$(a)=mid$(vt$,1,a):next
140 fori=1tot:readqt$(i):nexti
160 data 4
180 data "[208]roceed with test"
190 data "[199]o ahead"
200 data "[198]irst question, please"
210 data "[209]uit"
310 print"[147] [197]ptitude [212]est"
315 print"[153] [194]y [196]an [212]obias"
317 print" [195]-64 version by [205]ike [205]aynard"
320 print"[159][208]lease [195]hoose:":fori=1tot:print""i;"[157][154]. ";qt$(i):nexti
330 print"[154][212]ype the number of your choice:";
336 getok$:ifok$=""then336
339 ifok$="4"then6000
340 ok=val(ok$):ifok<1orok>tthen336
350 print"[147][208][204][197][193][211][197] [215][193][201][212] [198][207][210] [212][200][197] [212][197][211][212] [212][207] [194][197] [195][210][197][193][212][197][196]"
400 ok=.:qt$(.)="[197]ptitude [212]est"
410 open3,dq,3,"eptext":input#3,n$
420 n=20:dimq$(n),aa$(n),ab$(n),ac$(n),ad$(n),ca$(n)
430 fori=1ton:gosub450:q$(i)=in$:gosub450:aa$(i)=in$:gosub450
433 ab$(i)=in$:gosub450:ac$(i)=in$:gosub450:ad$(i)=in$
440 sys828,3,255:ca$(i)=in$:nexti:close3:goto510
450 sys828,3,255:in$=mid$(in$,1):return
510 fori=1ton
520 print"[147][158]"tab(20-len(qt$(ok))/2)""qt$(ok)
521 print" [208]ress [153][209] to quit."
523 print"[155][209][213][197][211][212][201][207][206] #"i"[146]"
530 print"[154]"q$(i):print"[193]. [159]";aa$(i):print"[194]. [159]";ab$(i)
533 print"[195]. [159]";ac$(i):print"[196]. [159]";ad$(i):print
540 printtab(4)"[215][200][193][212] [201][211] [212][200][197] [194][197][211][212] [195][200][207][201][195][197]? ":poke198,.
542 getan$:ifan$=""then542
543 ifan$<>"a"andan$<>"b"andan$<>"c"andan$<>"d"andan$<>"q"thenprint"[145]";:goto540
545 ifan$="q"thengosub5000:goto520
550 ifan$<>ca$(i)then570
560 sc=sc+1:printvt$(20)"[129][195][207][210][210][197][195][212]!":print"[211][195][207][210][197]:[146][150]";
563 print" ";sc;" [207][213][212] [207][198] ";i:goto580
570 printvt$(20)"[153][212][200][197] [210][201][199][200][212] [193][206][211][215][197][210] [215][193][211] "ca$(i)
573 print"[211][195][207][210][197]:[146][150]";sc;" [207][213][212] [207][198] ";i
580 printvt$(24)tab(5)"[154][208][210][197][211][211] [210][197][212][213][210][206][154]";
583 print" [212][207] [195][207][206][212][201][206][213][197]...":poke198,.
584 getok$:ifok$<>chr$(13)then584
590 nexti
610 print"[147]"tab(20-len(qt$(ok))/2)""qt$(ok)""
615 print"[198][201][206][193][204] [211][195][207][210][197]:[146]";:print" "sc" [210][201][199][200][212] [207][213][212] [207][198] "n"."
620 ifsc=nthenprint:print"[212][200][193][212] [215][193][211] [208][197][210][198][197][195][212]!!!":goto710
630 p=int((sc/n)*100+.5)
640 ifp=>94thenprint:print"[212][200][193][212] [215][193][211] [197][216][195][197][204][204][197][206][212]!!":goto710
650 ifp=>84thenprint:print"[129][212][200][193][212] [215][193][211] [214][197][210][217] [199][207][207][196]!":goto710
660 ifp=>74thenprint:print"[158][212][200][193][212] [215][193][211] [199][207][207][196]":goto710
670 ifp=>70thenprint:print"[212][200][193][212] [215][193][211] [198][193][201][210].":goto710
680 ifp=>50thenprint:print"[159][212][200][193][212] [215][193][211] [208][207][207][210].":goto710
690 print:print"[154][212][200][193][212] [215][193][211] [214][197][210][217] [208][207][207][210]."
710 printvt$(24)tab(5)"[154][208][210][197][211][211] [210][197][212][213][210][206][154] [212][207] [195][207][206][212][201][206][213][197]...":poke198,.
715 getok$:ifok$<>chr$(13)then715
720 clr:goto100
5000 print"[147][154] [193]re you sure you want to quit? ([217][154]/[206][154])":poke198,.
5010 geta$:ifa$<>"y"anda$<>"n"then5010
5020 ifa$="n"thenreturn
6000 open15,dq,15,"r0:connect=connect":input#15,er:close15:ifer<>63thenend
6010 load"connect",dq
59999 end
60000 d=peek(186):open1,d,15,"i0":n$="eptitude test"
60001 print#1,"s0:"+n$:close1:saven$,d:end